PJDIR = ..
include $(PJDIR)/build.mak

#get all source files
SRCS := $(wildcard *.c)
OBJS := $(patsubst %.c, %.o, $(SRCS))

PJ_CFLAGS := $(filter-out -O2,$(PJ_CFLAGS))
PJ_LDLIBS += -L/home/jack/Downloads/04_Sources/YT113X-buildroot-t1-5.4.61-1.1.0/auto-t113x-linux/platform/framework/cedarx/external/lib32/arm-linux-gnueabi -lsalsa

all: pjsip_app

.PHONY: clean

pjsip_app: $(OBJS)
	$(PJ_CC) -g -o $@ $^ $(PJ_LDFLAGS) $(PJ_LDLIBS)

%.o: %.c
	$(PJ_CC) -c -g -o $@ $< $(PJ_CFLAGS)

clean:
	rm -rf pjsip_app *.o
